package com.hospital.hospitalrelay.web;


import com.hospital.hospitalrelay.entity.Area;
import com.hospital.hospitalrelay.service.IAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 地区表 前端控制器
 * </p>
 *
 * @author 闫腾腾
 * @since 2020-10-21
 */
@RestController
@RequestMapping("/area")
public class AreaController {

    @Autowired
    private IAreaService iAreaService;

    //医嘱列表
    @RequestMapping("areaList")
    public List<Area> arealist(){
        return iAreaService.arealist();
    }

}
